from django.db import models
from utils.BaseModel import BaseModel


# Create your models here.

class Health(BaseModel):
    name = models.CharField(max_length=32, verbose_name='名称')
    selected = models.BooleanField(default=False, verbose_name='是否选中')
    parent = models.ForeignKey('self', on_delete=models.CASCADE, null=True, blank=True, verbose_name='父级分类', related_name='son')

    def __str__(self):
        return self.name

    class Meta:
        db_table = 'health'
